/**
 * @author xuyh0817
 * @email xuyh0817@foxmail.com
 * @date 2022-02-22 01:22
 * @version 2.0.0
 * @doc todo
 * @website todo
 * @remark  如果要分发源码，需在本文件顶部保留此文件头信息！！
 */

import {COMPONENT_TYPE} from '../../../../../libs/constants'

export default [
  {
    id: '1',
    type: COMPONENT_TYPE.INPUT,
    formItem: {
      prop: 'errorText',
      rules: [],
      label: '错误提示',
      extra: '表单组件列表的错误提示内容',
    },
    attrs: {
      value: '拖动或点击添加表单项',
      maxLength: 60,
      type: 'text',
      allowClear: true,
      placeholder: '请输入错误提示内容'
    }
  },
  {
    id: '2',
    type: COMPONENT_TYPE.INPUT,
    formItem: {
      prop: 'errorColor',
      rules: [],
      label: '错误颜色',
      extra: '表单组件列表的错误提示内容颜色',
    },
    attrs: {
      value: '#409eff',
      maxLength: 60,
      type: 'text',
      allowClear: true,
      placeholder: '请输入错误颜色值'
    }
  },
  {
    id: '3',
    type: COMPONENT_TYPE.SWITCH,
    formItem: {
      prop: 'validateFieldOnChange',
      rules: [],
      label: '属性验证',
      extra: '是否在 rules 属性改变后立即触发一次验证',
    },
    attrs: {
      checked: true,
      checkedChildren: '开启',
      unCheckedChildren: '关闭'
    }
  },
  {
    id: '4',
    type: COMPONENT_TYPE.SWITCH,
    formItem: {
      prop: 'disabled',
      rules: [],
      label: '组件禁用',
      extra: '组件全部禁用',
    },
    attrs: {
      checked: false,
      checkedChildren: '禁用',
      unCheckedChildren: '启用'
    }
  }
]

